<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateJobTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('job', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 100)->comment('职位名称');
            $table->tinyInteger('school')->comment('院校要求');
            $table->tinyInteger('sex')->comment('性别要求');
            $table->string('specialty1', 100)->comment('相关专业1');
            $table->string('specialty2', 100)->comment('相关专业2');
            $table->string('specialty3', 100)->comment('相关专业3');
            $table->integer('created_at')->nullable();
            $table->integer('updated_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('job');
    }
}
